package org.codeanywhere.cafe.test;

import android.view.KeyEvent;
import com.baidu.cafe.CafeTestCase;
// next import

public class CafeReplay extends CafeTestCase {
    private static Class<?>     launcherActivityClass;
    static {
        try {
            launcherActivityClass = Class.forName("com.pubinfo.hongshi.activity.LoginActivity");
        } catch (ClassNotFoundException e) {
        }
    }

@SuppressWarnings("unchecked")
    public CafeReplay() {
        super("com.pubinfo.officeassistant", launcherActivityClass);
    }


    protected void setUp() throws Exception{
        super.setUp();
    }


    protected void tearDown() throws Exception{
        super.tearDown();
    }

    public void testRecorded() {
        local.sleep(4267);
        local.screenShotNamedCaseName("0");
        local.recordReplay.dragPercent(0.67267686f, 0.6712899f, 0.40034947f, 0.39786798f, 4);
        local.sleep(4873);
        local.screenShotNamedCaseName("1");
        local.enterText(0, "太好了", false);
        local.recordReplay.dragPercent(0.39528435f, 0.39528435f, 0.49795532f, 0.4950603f, 4);
        local.sleep(6073);
        local.screenShotNamedCaseName("2");
        local.enterText(1, "xjdllliffj", false);
        local.recordReplay.dragPercent(0.5450763f, 0.54368937f, 0.3945593f, 0.39373213f, 4);
        local.sleep(8029);
        local.screenShotNamedCaseName("3");
        local.enterText(0, "太好了宿舍的人", false);
        local.recordReplay.clickOn("id/login", "0", false);//Click On [android.widget.Button{41c8cb00 VFED..C. ...P..I. 0,0-238,80 #7f0a00ea app:id/login}][R.id.login][登录] 
        local.sleep(8590);
        local.screenShotNamedCaseName("4");
        local.recordReplay.clickOn("id/title_btn_left", "0", false);//Click On [android.widget.Button{41ca4780 VFED..C. ...P..I. 16,12-132,72 #7f0a010a app:id/title_btn_left}][R.id.title_btn_left][返回] 
        // next line
        local.sleep(3000);
    }

}
